package com.ocom.company.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ocom.common.entity.company.EntityFlowPushInfo;
import com.ocom.common.vo.FlowPushInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IDaoFlowPushInfo extends BaseMapper<EntityFlowPushInfo> {

    @Select("select p.*,c.flow_name,c.flow_keyword from flow_push_info p left join flow_config c on p.f_id=c.id  ${ew.customSqlSegment}")
    List<FlowPushInfoVo> selectFlowPushInfoList(@Param(Constants.WRAPPER) Wrapper wrapper);
}
